
<template>
  <el-container style="height: 100vh; border: 1px solid #eee">

    <el-aside width="200px" style="background-color: rgb(238, 241, 246)">
      <img src="https://pigcar.oss-cn-beijing.aliyuncs.com/img/QQ%E6%88%AA%E5%9B%BE20210708112720.png" alt="">
      <el-menu :default-openeds="['1', '2']" router>
        <el-menu-item index="/home/main">
          <i class="el-icon-s-home"></i>
          首页
        </el-menu-item>
        <el-submenu index="1">
          <template #title>
            <i class="el-icon-user"></i>
            用户管理
          </template>
          <el-menu-item index="/home/user">全部用户</el-menu-item>
          <el-menu-item index="1-2">审核用户</el-menu-item>
        </el-submenu>
        <el-submenu index="2">
          <template #title><i class="el-icon-menu"></i>
            车辆管理
          </template>
          <el-menu-item index="/home/checkCar">录入车辆</el-menu-item>
          <el-menu-item index="2-3">全部车辆</el-menu-item>
        </el-submenu>
        <el-submenu index="2">
          <template #title><i class="el-icon-menu"></i>
            订单管理
          </template>
          <el-menu-item index="/home/order">全部订单</el-menu-item>
        </el-submenu>
      </el-menu>
    </el-aside>

    <el-container>
      <el-header style="text-align: right; font-size: 12px">
          <span class="name">大菊菊</span>
<!--        <el-badge :value="1" class="item" type="warning" style="margin-left: 1100px;margin-top: 9px;margin-right: 10px">-->
          <el-button size="small">回复</el-button>
<!--        </el-badge>-->

<!--        <el-badge :value="2" class="item" type="primary" style="margin-top: 9px;margin-right: 10px">-->
          <el-button size="small">查看</el-button>
<!--        </el-badge>-->
<!--        <el-badge :value="3" class="item" type="primary" style="margin-top: 9px">-->
          <el-button size="small">退出</el-button>
<!--        </el-badge>-->

      </el-header>

      <el-main>
<!--        <el-table :data="tableData">-->
<!--          <el-table-column prop="date" label="日期" width="140">-->
<!--          </el-table-column>-->
<!--          <el-table-column prop="name" label="姓名" width="120">-->
<!--          </el-table-column>-->
<!--          <el-table-column prop="address" label="地址">-->
<!--          </el-table-column>-->
<!--        </el-table>-->
        <router-view/>
      </el-main>
    </el-container>
  </el-container>
</template>

<script>
export default {
  data() {
    const item = {
      date: '2016-05-02',
      name: '王小虎',
      address: '上海市普陀区金沙江路 1518 弄'
    };
    return {
      tableData: Array(20).fill(item)
    }
  }
};
</script>

<style>
.el-header {
  background-color: #f8f8f8;
  color: #333;
  line-height: 60px;
}

.el-aside {
  color: #333;
}

.name{
  margin-right: 20px;
  font-weight: 600;
  font-size: 17px;
}
</style>
